<div th:fragment="recommend">
    <div class="card" th:each="a : ${recommend}">
        <div class="title" th:text="${a.title}">标题</div>
        <div class="meta">
            分类ID: <span th:text="${a.categoryId}">0</span>
            · 作者ID: <span th:text="${a.authorId}">0</span>
            · 标签: <span th:text="${a.tags}">无</span>
        </div>
        <div class="actions">
            <a th:href="@{'/articles/detail'(id=${a.id})}" class="btn">查看详情</a>
        </div>
    </div>
</div>